<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
	<title>修改新建文件</title>
	<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
	<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
	<link rel="stylesheet" href="../static/web/css/admin.css">
	<script language="javascript" src="../static/web/js/jquery.min.js"></script>
	<script src="../static/web/js/bootstrap.bundle.min.js"></script>
	<script language='javascript' src='js/main.js'></script>
	<script language="javascript">
		function Post() {
			if (document.form1.filename.value == "") {
				ShowMsg("文件名不能为空");
				document.form1.filename.focus();
				return false;
			}
		}
	</script>
	<link rel="stylesheet" href="css/codemirror.css">
	<script type="text/javascript" src="js/codemirror.js"></script>
	<script type="text/javascript" src="js/mode/xml/xml.js"></script>
	<script type="text/javascript" src="js/mode/javascript/javascript.js"></script>
	<script type="text/javascript" src="js/mode/css/css.js"></script>
	<script type="text/javascript" src="js/mode/php/php.js"></script>
	<script type="text/javascript" src="js/mode/clike/clike.js"></script>
	<script type="text/javascript" src="js/mode/htmlmixed/htmlmixed.js"></script>
</head>
<body>
	<form method="POST" action="file_manage_control.php" name=form1 onSubmit="return Post()">
		<input type="hidden" name="fmdo" value="edit">
		<input type="hidden" name="backurl" value="{dede:global name='backurl' function='urlencode(@me)'/}">
		<input type="hidden" name="_csrf_token" value="{dede:global name='csrf_token'/}">
		<table width='100%' align="center" cellpadding='3' cellspacing='1' class="table maintable mt-3 mb-3">
			<tr bgcolor='#EEF4EA'>
				<td colspan="2" height="26" background="../static/web/img/wbg.gif" style="padding-left:10px">修改新建文件</td>
			</tr>
			<tr>
				<td>工作目录</td>
				<td><input name="activepath" value="{dede:global name='activepath'/}" style="width:260px">（空白表示根目录 ，不允许用 “..” 形式的路径）</td>
			</tr>
			<tr>
				<td>文件名称</td>
				<td><input name="filename" value="{dede:global name='filename'/}" style="width:260px">（不允许用 “..” 形式的路径）</td>
			</tr>
			<tr class="table">
				<td colspan='2'>{dede:global name='contentView'/}</td>
			</tr>
			<tr>
				<td bgcolor="#f8f8f8" colspan="2" align="center" class="py-3">
					<button type=submit name='B1' class="btn btn-success btn-sm">保存</button>
					<button type=reset name='B2' class="btn btn-success btn-sm">重置</button>
					<button type=button name='B4' class="btn btn-success btn-sm" onClick="javascript:history.go(-1);">返回</button>
				</td>
			</tr>
		</table>
	</form>
	<script type="text/javascript">
		var editor = CodeMirror.fromTextArea(document.getElementById('str'), {
			lineNumbers: true,
			lineWrapping: true,
			mode: '{dede:global name='extension'/}'
    });
	</script>
</body>
</html>